package projsa;

import projsa.ui.MainWindow;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

public class Main {

    public static void main(String[] args) {

        final MainWindow mainWindow = new MainWindow("SA");

        mainWindow.setVisible(true);

        mainWindow.addWindowListener(new WindowListener() {
            @Override
            public void windowOpened(WindowEvent e) {
            }

            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }

            @Override
            public void windowClosed(WindowEvent e) {
                System.exit(0);
            }

            @Override
            public void windowIconified(WindowEvent e) {
            }

            @Override
            public void windowDeiconified(WindowEvent e) {
            }

            @Override
            public void windowActivated(WindowEvent e) {
            }

            @Override
            public void windowDeactivated(WindowEvent e) {
            }
        });

//        final FirefoxDriver firefoxDriver = ;
//
//        final SearchCriteria searchCriteria = new SearchCriteria("5.12.2012",
//                CityConstants.SOKOLOV, CityConstants.PRAHA_DEJVICKA,
//                TransUtils.toMinuteOfDay(11, 25), TransUtils.toMinuteOfDay(11, 55), TransUtils.toMinuteOfDay(13, 25));
//
//
//        final ReservationMaker reservationMaker = new ReservationMaker(firefoxDriver);
//        reservationMaker.makeReservation(searchCriteria);

    }

}
